<?php

class Tache
{
    private $tchID;
    private $tchDateCreation;
    private $tchDateEcheance;
    private $tchLabel;
    private $tchStatut;
    
    //Utile pour l'identification relative, l'insertion des lignes, dans la bdd.
    private $tchActivite;

    public function __construct ($tchID = NULL, $tchDateCreation = NULL, $tchDateEcheance = NULL,
				 $tchLabel = NULL, $tchStatut = NULL, $tchActivite = NULL)
    {
	$this->tchID = $tchID;
	$this->tchDateCreation = $tchDateCreation;
	$this->tchDateEcheance = $tchDateEcheance;
	$this->tchLabel = $tchLabel;
	$this->tchStatut = $tchStatut;
	
	$this->tchActivite = $tchActivite;
    }
    
    //ID de la tâche
    public function getTchID ()
    {
	return $this->tchID;
    }
    
    public function setTchID ($tchID)
    {
	$this->tchID = $tchID;
    }
    
    //Date de création de la tâche
    public function getTchDateCreation ()
    {
	return $this->tchDateCreation;
    }
    
    public function setTchDateCreation ($tchDateCreation)
    {
	$this->tchDateCreation = $tchDateCreation;
    }
    
    //Date d'échéance de la tâche
    public function getTchDateEcheance ()
    {
	return $this->tchDateEcheance;
    }
    
    public function setTchDateEcheance ($tchDateEcheance)
    {
	$this->tchDateEcheance = $tchDateEcheance;
    }
    
    //Label de la tâche
    public function getTchLabel ()
    {
	return $this->tchLabel;
    }
    
    public function setTchLabel ($tchLabel)
    {
	$this->tchLabel = $tchLabel;
    }
    
    //Statut de la tâche
    public function getTchStatut ()
    {
	return $this->tchStatut;
    }
    
    public function setTchStatut ($tchStatut)
    {
	$this->tchStatut = $tchStatut;
    }
    
    //Référence de l'activité auquel est rattachée la tâche
    public function getTchActivite()
    {
	return $this->tchActivite;
    }
    
    public function setTchActivite($tchActivite)
    {
	$this->tchActivite = $tchActivite;
    }
}

?>